<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Alinejun - 博客后台</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="icon" href="__IMG__/favicon.ico">
	<link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
	<link rel="stylesheet" href="__CSS__/main.css">
	<link rel="stylesheet" href="__CSS__/iconfont.css">
</head>
<body class="main_body">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main">
				<a href="/admin/index/index" class="logo">后台管理</a>
				<!-- 搜索 -->
				<form action="/admin/index/index" class="layui-form component" id="index-form">
			        <select name="module" lay-verify="required" lay-search="">
						<option value="">搜索选择</option>
						{volist name="slist" id="vo"}
							<option value="{$key}">{$vo.name}</option>
						{/volist}
			        </select>
			        <a href="javascript:;" id="index-sub" >
			        	<i class="layui-icon">&#xe615;</i>
			        </a>
			    </form>

			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
			    	<li class="layui-nav-item showNotice" id="showNotice" pc>
						<a href="{:url('index/index/index')}" target="_blank"><i class="layui-icon layui-icon-home"></i><cite>前台首页</cite></a>
					</li>
			    	<li class="layui-nav-item" mobile>
			    		<a href="javascript:;" data-url="{:url('admin/user/edit', ['flag' => 'edit','user_id' => $userinfo['user_id']])}"><i class="iconfont icon-shezhi1" data-icon="icon-shezhi1"></i><cite>设置</cite></a>
			    	</li>
			    	<li class="layui-nav-item" mobile>
			    		<a href="{:url('admin/login/login_out')}"><i class="iconfont icon-loginout"></i> 退出</a>
			    	</li>
					<li class="layui-nav-item lockcms" pc>
						<a href="javascript:;"><i class="iconfont icon-lock1"></i><cite>锁屏</cite></a>
					</li>
					<li class="layui-nav-item" pc>
						<a href="javascript:;">
							<img src="__ROOT__{$userinfo.headpic}" class="layui-circle" width="35" height="35">
							<cite>{$userinfo.nickname}</cite>
						</a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" data-url="{:url('admin/user/info', ['user_id' => $userinfo['user_id']])}"><i class="iconfont icon-zhanghu" data-icon="icon-zhanghu"></i><cite>个人资料</cite></a></dd>
							<dd><a href="javascript:;" data-url="{:url('admin/user/edit', ['flag' => 'edit','user_id' => $userinfo['user_id']])}"><i class="iconfont icon-shezhi1" data-icon="icon-shezhi1"></i><cite>修改密码</cite></a></dd>
							<dd><a href="{:url('admin/login/login_out')}"><i class="iconfont icon-loginout"></i><cite>退出</cite></a></dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side layui-bg-black">
			<div class="user-photo">
				<a class="img" href="javascript:;" title="{$userinfo.nickname}" ><img src="__DOMINO__{$userinfo.headpic}"></a>
				<p>欢迎登录！<span class="userName">{$userinfo.nickname}</span></p>
			</div>
			<div class="navBar layui-side-scroll">
				<ul class="layui-nav layui-nav-tree">
					{volist name="menulist" id="vo"}
						<li class="layui-nav-item">
							<a href="javascript:;" {if empty($vo['child'])}data-url="{$vo.link}"{/if}>
								<i class="iconfont">{$vo.icon|raw}</i>
								<cite>{$vo.name}</cite>
                        		<span class="fa arrow"></span>

							</a>

	                        {if !empty($vo['child'])}
	                        {volist name="vo['child']" id="v"}
								<dl class="layui-nav-child">
									<dd>
										<a href="javascript:;" data-url="{$v.link}">
											<i class="iconfont">{$v.icon|raw}</i>
											<cite>{$v.name}</cite>
										</a>
									</dd>
								</dl>
	                        {/volist}
	                        {/if}
						</li>
					{/volist}
				</ul>
			</div>
		</div>
		<!-- 右侧内容 -->
		<div class="layui-body layui-form">
			<div class="layui-tab marg0" lay-filter="bodyTab">
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show">
						<iframe id="iframe" src="/admin/index/main"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部 -->
		<div class="layui-footer footer">
			<p>copyright @2020  Author  AAAA</p>
		</div>
	</div>

	<!-- 锁屏 -->
	<div class="admin-header-lock" id="lock-box" style="display: none;">
		<div class="admin-header-lock-img"><img src="__ROOT__{$userinfo.headpic}"/></div>
		<div class="admin-header-lock-name" id="lockUserName">{$userinfo.nickname}</div>
		<div class="input_btn">
			<input type="password" class="admin-header-lock-input layui-input" placeholder="请输入密码解锁.." name="lockPwd" id="lockPwd" />
			<button class="layui-btn" id="unlock">解锁</button>
		</div>
		<p>请输入“123456”，否则不会解锁成功哦！！！</p>
	</div>
	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>
	
	{load href="__STATIC__/layui/layui.js" /}
	{load href="__JS__/nav.js" /}
	{load href="__JS__/leftNav.js" /}
	{load href="__JS__/index.js" /}

	<script>
		var url = "<?php echo empty($tourl)? '': $tourl;?>";
	</script>
</body>
</html>